<%@ Page Language="C#" MasterPageFile="~/pages/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="pages_Default" Title="Home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headHolder" Runat="Server">
    <link type="text/css" rel="stylesheet" href="styles/index_style.css" />
    <link rel="stylesheet" href="../scripts/slide/website.css" type="text/css" media="screen"/>
    
	<script type="text/javascript">
    //slide show
        $(document).ready(function(){
			$('#slider1').tinycarousel({interval:true,duration:2000, intervaltime:5000});	
		  });		
    </script>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyHoder" Runat="Server">
    <div id="slider1">		   
		    <div class="viewport">
			    <ul class="overview">
			        <asp:Repeater ID="rptSlideShow" runat="server">
			            <ItemTemplate>
				        <li>				        
				         <a href="TourDetails.aspx?id=<%#Eval("Id")%>" title="<%#Eval("Name") %>">
				            <img alt="" src="<%#Eval("ImageURL") %>" />
				         </a>
				            <span style="z-index:9999;top:-20px;padding:5px; left:0px; background-color:Black; color:White; font-weight:bold;">$<%#Eval("Price","{0:#.#}") %></span>				       			        
				        </li>				    
				        </ItemTemplate>
				    </asp:Repeater>
			    </ul>
		    </div>	
    </div>
  
    <h3>New tours</h3>			
			<div class="contentbox" >
			        <ul class="overview" style="padding-left:0px;">
			        <asp:Repeater ID="rptNew" runat="server">
			        <ItemTemplate>	
				        <li class="new_tour" style="list-style-type:none;">
				             				
				            <a class="title" href="TourDetails.aspx?id=<%#Eval("Id") %>"><img src='<%#Eval("ImageURL") %>' alt="" class="thumb_image"/>
				            <%#Eval("Name") %></a>
				            <%#Eval("Description") %><br/>
				            <strong>Price: </strong><strong style="color:#003399">$ <%#Eval("Price","{0:#.#}") %></strong>	
				            <asp:Panel Visible='<%# GetDiscountState(Eval("Discount")) %>' ID="pnlDiscount" runat="server"><strong>Discount: </strong> <strong style="color:Red;">$ <%#Eval("Discount","{0:#.#}") %></strong></asp:Panel>		           
				       
				        </li>
				        </ItemTemplate>   
			        </asp:Repeater>
			        </ul>
	        </div>
			
			    <h3>Recommended places:</h3>
			    <asp:Repeater ID="rptPlace" runat="server">
    			<ItemTemplate>
			    <div class="contentbox">
				    <a href="PlaceDetails.aspx?id=<%#Eval("Id") %>"><img src="<%#Eval("ImageURL") %>" alt="" class="thumb_image"/></a>
				    <h4 style="display:inline;clear:none;"><%#Eval("Name") %></h4><br />
				    <%#Eval("Description") %><br/>				    
					<a href="PlaceDetails.aspx?id=<%#Eval("Id") %>" class="link_button">Details ...</a>					  
				   
			    </div>			    
			    </ItemTemplate>
			    </asp:Repeater>
			   		    
			
		    
				 
	   
</asp:Content>

